package com.groupbuying.orderconsumer.service;

import com.groupbuying.orderconsumer.domain.OrderUshopDO;
import com.groupbuying.orderconsumer.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * 够样优店单订单表
 * 
 * @author zmlmagic
 * @email zmlmagic@163.com
 * @date 2019-05-05 01:59:51
 * @des
 */

public interface OrderUshopService {
	
	OrderUshopDO get(String orderId);
	
	List<OrderUshopDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(OrderUshopDO orderUshop);
	
	int update(OrderUshopDO orderUshop);
	
	int remove(String orderId);
	
	int batchRemove(String[] orderIds);


	/**
	 * 修改订单交易状态
	 * @param orderId 订单ID
	 * @param dealState 交易状态
	 * @return
	 */
	ApiResult updateDealState(String orderId, String dealState);
	/**
	 * 关闭订单
	 * @param orderId 订单ID
	 * @param closeType 操作类型 手动关闭 自动关闭
	 * @return
	 */
	ApiResult closeDealState(String orderId, String closeType);
	/**
	 * 修改订单状态
	 * @param orderId 订单id
	 * @param orderState  订单状态
	 * @return
	 */
	ApiResult updateOrderState(String orderId, String orderState);
}
